package com.rgs.gateway.authentication.server.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "auth_resource_info")
public class ResourcePO implements Serializable {
    @ApiModelProperty(value = "资源方（例如： 1：交易网关 2：数据网关）")
    private Integer resourceCode;
    @ApiModelProperty(value = "资源方法（POST、PUT、GET、DELETE等）")
    private String resourceMethod;
    @ApiModelProperty(value = "资源名称")
    private String resourceName;
    @ApiModelProperty(value = "资源路径")
    private String resourcePath;
    @ApiModelProperty(value = "预留字段")
    private String additionalInfo;
    @ApiModelProperty(value = "备注")
    private String remarks;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除（0：否 1：是）")
    private Integer isDelete = 0;
}
